package com.note.sys;

import com.note.bo.R;
import com.note.constant.ServiceNameConstants;
import com.note.factory.RemoteWorkFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author yuhuan
 * @date 2025/3/19
 */
@FeignClient(contextId = "remoteWorkService", value = ServiceNameConstants.BUSINESS_SERVICE,
        path = "/work", fallbackFactory = RemoteWorkFallbackFactory.class)
public interface RemoteWorkService {

    @GetMapping("/name")
    R<String> workName();
}
